package cn.thornbird.orgsync.exception;

import org.springframework.http.HttpStatus;

public class UnauthorizedException extends HttpException {

    private static final long serialVersionUID = 981916176083955379L;

    public UnauthorizedException() {
        super(HttpStatus.UNAUTHORIZED.getReasonPhrase());
        statusCode = HttpStatus.UNAUTHORIZED.value();
    }

    public UnauthorizedException(String message) {
        super(message);
        statusCode = HttpStatus.UNAUTHORIZED.value();
    }

}
